﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace CircleCut.Models
{
    public class Input
    {
        //板材长度
        public string Length { get; set; }
        //板材宽度
        public string Width { get; set; }
        //毛坯种类数
        public string DiaTotalNum { get; set; }
        //delta参数
        //public string delta { get; set; }
        //beta参数
        //public string beta { get; set; }
        //emixilo参数
        //public string e { get; set; }
        //p参数
        //public string p { get; set; }

        //[Display(Name = "Release Date")]
        //[DataType(DataType.Date)]
        //[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]

        //输入ID
        public int ID { get; set; }
        //输入编号
        public string Number { get; set; }
        //毛坯直径
        //public string Diameter { get; set; }
        //毛坯需求
        //public string Demand { get; set; }    
    }

    public class Circle
    {
        //毛坯ID
        public int ID { get; set; }
        //输入编号
        public string Number { get; set; }
        //毛坯直径
        public string Diameter { get; set; }
        //毛坯需求
        public string Demand { get; set; }


    }

    public class InputDBContext : DbContext
    {
        public DbSet<Input> Inputs { get; set; }
        public DbSet<Circle> Circles { get; set; }
        public DbSet<Output> Outputs { get; set; }
    }
}